package cn.yunhe.mapper;

import cn.yunhe.bean.Orders;
import cn.yunhe.bean.OrdersExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OrdersMapper {
    int countByExample(OrdersExample example);

    int deleteByExample(OrdersExample example);

    int deleteByPrimaryKey(Integer oid);

    int insert(Orders record);

    int insertSelective(Orders record);

    List<Orders> selectByExample(OrdersExample example);

    Orders selectByPrimaryKey(Integer oid);

    int updateByExampleSelective(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByExample(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    int countOrdersByUid(@Param("value") int page);

    List<Orders> findOrderByUidAndPage(@Param("arg0") int id , @Param("arg1") int page ,@Param("arg2") int cont);

    int countAllOrders();

    List<Orders> findAllOrderByPage( @Param("arg1") int page ,@Param("arg2") int cont);

    int countOrdersByState(@Param("state") int state);

    List<Orders> findAllOrderByStateAndPage(@Param("arg0") int id , @Param("arg1") int page ,@Param("arg2") int cont);

    List<Orders>findmyord(@Param("arg1") int page ,@Param("arg2") int cont);

    List<Orders>findnews(@Param("arg1") int page );
}